package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.dto.CourseBaseDTO;
import com.xuecheng.api.content.model.qo.QueryCourseBaseModel;
import com.xuecheng.api.content.model.vo.CourseAuditVO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.content.entity.CourseBase;

/**
 * <p>
 * 课程基本信息 服务类
 * </p>
 *
 * @author itcast
 * @since 2022-01-17
 */
public interface CourseBaseService extends IService<CourseBase> {

    PageVO<CourseBaseDTO> queryCourseList(PageRequestParams params, QueryCourseBaseModel  model,Long companyId);

    //新增课程
    CourseBaseDTO createCourseBase(CourseBaseDTO courseBaseDTO);
    /**
     * 根据Id查询课程基础信息
     * @param courseBaseId 课程的Id值
     * @param companyId 公司的Id值
     * @return CourseBaseDTO
     */
    CourseBaseDTO getByCourseId(Long courseBaseId,Long companyId);
    /**
     * 修改课程基础信息
     * @param dto CourseBaseDTO
     * @return
     */
    CourseBaseDTO modifyCourseBase(CourseBaseDTO dto);

    /**
     * 根据课程Id进行删除操作
     */
    void removeCourseBase(Long courseBaseId,Long companyId);

    /**
     * 根据课程Id提交课程信息
     * @param courseBaseId
     * @param companyId
     */
    void commitCourseBase(Long courseBaseId, Long companyId);


    /**
     * 课程审核
     * @param
     * @return
     */
    void approve(CourseAuditVO auditVO);
}
